<!--
 * @Author: lc
 * @version: v1.2
 * @Date: 2021-10-27 11:11:38
 * @LastEditors: lc
 * @LastEditTime: 2021-10-27 13:41:53
 * @Descripttion: 首页
-->
<template>
  <div>
    <el-row>
      <el-col :span="3">
        <el-button type="primary" @click="handleClick('table')">表格组件</el-button>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: 'index',
  methods: {
    handleClick(val) {
      switch (val) {
        case 'table':
          this.$router.push('/table')
          break
        default:
          break
      }
    }
  }
}
</script>
